// import request from '@/request/index.js'

// export const queryConfig = async (data) => {
// 	const res = await request('queryConfig', data,'post')
// 	console.log(res, 'res')
// }

import {
	request
} from '@/request/index.js'
//获取历史配置
export const queryConfig = async (params) => {
	const res= await request({
		url: 'queryConfig',
		data: params,
		method:'post'
	})
	if(res.data.success){
		return {
			data:res.data.data,
			success:true
		}
	}
}
//增加配置
export const addConfig = async (params) => {
	const res= await request({
		url: 'addConfig',
		data: params,
		method:'post'
	})
	if(res.data.success){
		return {
			data:res.data.data,
			success:true
		}
	}
}
